diff -Naur grace-5.1.22.orig/configure grace-5.1.22/configure
--- grace-5.1.22.orig/configure	2008-05-21 16:52:09.000000000 -0400
+++ grace-5.1.22/configure	2009-10-01 12:40:20.976239041 -0400
@@ -15690,7 +15690,7 @@
 
   if test "x$fftw_library" = "x"
   then
-    fftw_library=-lfftw
+    fftw_library=-ldfftw
   fi
 
   { echo "$as_me:$LINENO: checking for FFTW library >= 2.1.3" >&5
@@ -15722,7 +15722,7 @@
 cat >>conftest.$ac_ext <<_ACEOF
 /* end confdefs.h.  */
 
-#include <fftw.h>
+#include <dfftw.h>
 #include <string.h>
       int main(void) {
         char *vlib = (char *) fftw_version;
diff -Naur grace-5.1.22.orig/src/fourier.c grace-5.1.22/src/fourier.c
--- grace-5.1.22.orig/src/fourier.c	2004-07-03 16:47:45.000000000 -0400
+++ grace-5.1.22/src/fourier.c	2009-10-01 12:41:14.567703801 -0400
@@ -230,7 +230,7 @@
 #else
 /* Start of new FFTW-based transforms by Marcus H. Mendenhall */
 
-#include <fftw.h>
+#include <dfftw.h>
 #include <string.h>
 
 static char  *wisdom_file=0;
